package com.ym.controller;

import org.springframework.web.bind.annotation.*;

@org.springframework.stereotype.Controller
public class Controller {

    @PostMapping("check")
    @ResponseBody
    public  String check(String name){
        if ("qianfeng".equals(name)){
            return "用户名已存在";
        }else {
            return "用户名可用";
        }
    }
}
